﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="He.Web.manage.olservice.list" %>
<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>在线客服列表</title>
<uc:head runat="server" ID="uchead" />
<uc:head_list runat="server" ID="uchead_list" />
</head>
<body style="padding: 10px;">
<form id="form1" runat="server">
  <div class="navigation"> <span class="add"><a href="edit.aspx">增加在线客服</a></span> <b>您当前的位置：首页 &gt; 互动模块 &gt;
    在线客服列表</b> </div>
  <div class="spClear"> </div>
  <div class="content-tab-wrap">
    <div class="content-tab">
      <div class="content-tab-ul-wrap">
        <ul>
          <li><a class="selected" href="javascript:;">在线客服</a></li>
          <li><a href="group_list.aspx">客服分组</a></li>
        </ul>
      </div>
    </div>
  </div>
  <div class="content-body">
    <div class="spClear"> </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable noborder">
      <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
          <tr>
            <th> 选择 </th>
            <th> 编号 </th>
            <th> 名称 </th>
            <th> 号码 </th>
            <th> 类型 </th>
            <th> 组别 </th>
            <th> 是否推荐 </th>
            <th> 排序 </th>
            <th> 操作 </th>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr>
            <td><asp:CheckBox ID="Check" CssClass="checkall" runat="server"></asp:CheckBox>
              <asp:HiddenField
                            ID="HiddenId" runat="server" Value='<%#Eval("id") %>' />
            </td>
            <td><asp:Label ID="lb_id" runat="server" Text='<%#Eval("id")%>'></asp:Label>
            </td>
            <td><%#Eval("title") %> </td>
            <td><%#Eval("user_id") %> </td>
            <td><%#Eval("id_type") %> </td>
            <td><%#GetServiceGroup(Convert.ToInt32(Eval("group_id"))) %></td>
            <td><asp:ImageButton ID="ibtnRed" CommandArgument='<%#Eval("id") %>' OnCommand="ibtnRed_Command"
                            runat="server" ImageUrl='<%# Convert.ToInt32(Eval("is_red")) == 1 ? "../Images/ico-2.png" : "../Images/ico-2_.png"%>'
                            ToolTip='<%# Convert.ToInt32(Eval("is_red")) == 1 ? "取消推荐" : "设置推荐"%>' />
            </td>
            <td><asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="txtInput2 small2"
                            onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" />
            </td>
            <td><a href='edit.aspx?id=<%#Eval("id") %>&action=<%=He.Web.UI.Enums.ActionEnum.Edit %>'> 修改</a> </td>
          </tr>
        </ItemTemplate>
      </asp:Repeater>
    </table>
  </div>
  <div class="spClear"> </div>
  <div style="line-height: 30px; height: 30px;">
    <div class="left"> <span class="btn_all" onclick="CheckAll(this)">全 选</span> <span class="btn_bg">
      <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" OnClientClick="return confirm( '确定要删除这些记录吗？ ');">删除</asp:LinkButton>
      </span> <span class="btn_bg">
      <asp:LinkButton ID="lbtnSave" runat="server" OnClick="lbtnSave_Click">保存排序</asp:LinkButton>
      </span> </div>
  </div>
</form>
</body>
</html>
